713349a90285480930f549cd85026d358caef2e5,src/edu/stanford/nlp/mt/decoder/feat/base/HierarchicalReorderingFeaturizer.java,HierarchicalReorderingFeaturizer,featurize,#Featurizable#,198

Before Change


    float[] scores = mlrt
        .getReorderingScores(f.derivation.rule.abstractRule);
    float[] priorScores = (f.prior == null ? null : mlrt
        .getReorderingScores(f.prior.derivation.rule.abstractRule));

    ReorderingTypes forwardOrientation = ReorderingTypes.discontinuousWithPrevious, backwardOrientation = ReorderingTypes.discontinuousWithNext;

After Change


    float[] scores = mlrt == null ? f.rule.abstractRule.reoderingScores : 
      mlrt.getReorderingScores(f.derivation.rule.abstractRule);
    float[] priorScores = (f.prior == null ? null : 
      (mlrt == null ? f.rule.abstractRule.reoderingScores : mlrt.getReorderingScores(f.prior.derivation.rule.abstractRule)));

    ReorderingTypes forwardOrientation = ReorderingTypes.discontinuousWithPrevious, 
        backwardOrientation = ReorderingTypes.discontinuousWithNext;